package org.dam.common.enums;

/**
 * @Author dam
 * @create 2024/2/2 22:28
 */
public enum WebsocketNoticeEnum {
    //// 备份专用
    BACKUP_START(0, "开始备份"),
    BACKUP_ERROR(1, "备份失败"),
    BACKUP_SUCCESS(2, "完成备份"),
    BACKUP_STOP(3, "暂停备份"),
    BACKUP_PROCESS(4, "备份进度更新"),

    //// 清理专用
    CLEAR_START(10, "开始清理"),
    CLEAR_ERROR(11, "清理失败"),
    CLEAR_SUCCESS(12, "完成清理"),
    CLEAR_STOP(13, "暂停清理"),
    CLEAR_PROCESS(14, "清理进度更新");

    private Integer code;
    private String detail;

    WebsocketNoticeEnum(Integer code, String detail) {
        this.code = code;
        this.detail = detail;
    }

    public Integer getCode() {
        return code;
    }

    public String getDetail() {
        return detail;
    }
}
